<script setup>
import { RouterLink, RouterView } from "vue-router";
</script>

<template>
  <div class="subject">
    <div class="wrapper">
      <div class="shuang">
        <img src="../src/assets/images/主页/u2.png" alt="" />
        <h2>双碳招投标网</h2>
      </div>
      <div class="linkbox">
        <RouterLink to="/about"><span>平台动态</span></RouterLink>
        <RouterLink to="/regulation"><span>政策法规</span></RouterLink>
        <RouterLink to="/violation"><span>违规投诉</span></RouterLink>
        <RouterLink to="/info"><span>企业信息</span></RouterLink>
        <RouterLink to="/report"><span>信息公告</span></RouterLink>
      </div>
      <div class="shuang1">
        <img
          src="../src/assets/images/主页/u122.png"
          alt=""
          style="height: 38px; width: 40px"
        />
        <h5>admin</h5>
      </div>
    </div>

    <RouterView class="RouterView" />
  </div>
</template>

<style scoped>
.subject {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  min-height: 100vh;
  padding-top: 70px;
}

.wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  width: 100%;
  background-color: white;
  box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);
}

.linkbox {
  display: flex;
  gap: 12%;
  width: 700px;
}

.linkbox span {
  color: black;
}

.shuang {
  margin-left: 10%;
  display: flex;
  align-items: center;
  width: 250px;
  gap: 3%;
}

.shuang1 {
  padding-right: 10%;
  padding-left: 0;
  display: flex;
  align-items: center;
  width: 350px;
  gap: 12%;
}

.RouterView {
  width: 100%;
  flex: 1;
}
</style>
